package com.deep.nacos.client;

import com.deep.nacos.common.CommonResult;
import com.deep.nacos.entity.Dept;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class DeptFallbackService implements DeptFeignService {
    @Override
    public CommonResult<Dept> get(int id) {
        return new CommonResult(400, "失败了", null);
    }

    @Override
    public CommonResult<List<Dept>> list() {
        return new CommonResult(400, "失败了", new ArrayList<>());

    }
}
